package org.qiyu.live.im.core.server.service;

import org.qiyu.live.im.dto.ImMsgBody;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: sfx
 * Date: 2023-10-12
 * Time: 20:16
 */
public interface IMRouterHandlerService {

    /**
     * 发送给客户端消息之后,对ack进行处理
     *
     * @param msgBody
     */
    void onReceive(ImMsgBody msgBody);

    /**
     * 转发消息给客户端
     *
     * @param msgBody
     */
    boolean routeMessageToClient(ImMsgBody msgBody);
}
